package test;

public class test extends Thread{
    public static void main(String[] args) {
        Thread thread=new test();
        thread.start();
    }
    public void run() {
        String name = Thread.currentThread().getName();
        for (int i = 0; i < 5; i++) {
            System.out.println(name + "正在执行第" + (i + 1) + "次");
        }
    }
}
